package com.tarena.lbs.user.pojo.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.io.Serializable;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class UserGroupParam implements Serializable {
    @NotBlank(message = "人群名不能为空")
    @Schema(description ="人群名",required = true,example = "人群1")
    String groupName;
    @NotNull(message = "预估人数不能为空")
    @Pattern(regexp = "^[1-9]\\d*$", message = "必须是大于0的数字")
    @Schema(description ="预估人数",required = true,example = "100")
    Integer userNumber;

    @Schema(description ="人群标签")
    String tagIds;


}
